package com.usian.admin.controller.v1;

import com.usian.admin.service.AdCommentService;
import com.usian.apis.comment.CommentControllerApi;
import com.usian.model.admin.dtos.CommentLikeDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdCommentController  implements CommentControllerApi{

    @Autowired
    private AdCommentService adCommentService;

    @PostMapping("/save")
    public ResponseResult save(@RequestBody CommentLikeDto dto){
        return adCommentService.save(dto);
    }
}
